package cn.wolfcode.car.business.mapper;

import cn.wolfcode.car.business.domain.Appointment;
import cn.wolfcode.car.business.qo.AppointmentQueryObject;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface AppointmentMapper {

    int delete(Long id);

    int insert(Appointment appointment);

    Appointment selectOne(Long id);

    List<Appointment> selectAll();

    int update(Appointment appointment);

    List<Appointment> selectForList(AppointmentQueryObject qo);

    void change(@Param("statusCancel") Integer statusCancel, @Param("id") Long id);

    void arrival(@Param("statusArrival") Integer statusArrival, @Param("id") Long id);

}